package tt.dz.order.util.excel;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by huangchuan on 2017/7/7.
 *
 * Excel模板
 */
public class ExcelTemplate<T extends Object> {

    //标题
    private String title;

    //表格头部信息
    private List<ExcelHeader> headers = new ArrayList<ExcelHeader>();

    //合计
    private T group;

    //对象字段
    private List<String> fields;

    //导出集合
    private List<T> list;

    public void addExcelHeader(ExcelHeader header) {
        headers.add(header);
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<ExcelHeader> getHeaders() {
        return headers;
    }

    public void setHeaders(List<ExcelHeader> headers) {
        this.headers = headers;
    }

    public List<String> getFields() {
        return fields;
    }

    public void setFields(List<String> fields) {
        this.fields = fields;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public T getGroup() {
        return group;
    }

    public void setGroup(T group) {
        this.group = group;
    }
}
